before text\ifodd\x<1 something\else something else \fi after text

before text
\ifodd
    \x<1 something
    \else
        something else
        \fi
        after text
